package velox.jcr.mapper;

import javax.jcr.Node;
import javax.jcr.RepositoryException;

public interface Mapper<T> {
	public String getDiscriminator(Node n) throws RepositoryException ;
	public T read(Node node) throws RepositoryException;
	public void write(T t, Node node, boolean create) throws RepositoryException;
	
	public String getId(T t);
	public String getName(T t);
}
